Broadway: Fix handling of debug nodes
authorAlexander Larsson <alexl@redhat.com>
Wed, 26 Aug 2020 12:01:00 +0000 (14:01 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 26 Aug 2020 12:01:00 +0000 (14:01 +0200)
The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
So, don't hardcode the wrong number "14".

gdk/broadway/broadway.js

index 21554546c2a1fff58c849a7450303345b2e6be40..6544774dc42758064828ccbe7304986a6a650367 100644 (file)
@@ -809,7 +809,7 @@ TransformNodes.prototype.insertNode = function(parent, previousSibling, is_tople
         }
         break;
 
-    case 14:  // DEBUG
+    case BROADWAY_NODE_DEBUG:
         {
             var str = this.decode_string();
             var div = this.createDiv(id);